@using System.Web.WebPages;
@{
	var isValid = Page.isValid ; 
	var username = Page.username ;
	var usernameErrorMessage = Page.usernameErrorMessage;
	var passwordErrorMessage = Page.passwordErrorMessage;
	var rememberMe = Page.rememberMe;
	var password = Page.password;
}
@*<p>
   Please enter your username and password below. If you don't have an account,
   visit the <a href="@Href("~/Account/Register")">registration page</a> and create one.
</p>*@
@* If one or more validation errors exist, show an error *@
@if(!isValid) {
   <p class="message error">There was a problem with your login and/or errors exist in your form.</p>
}

<form method="post" action="">
    <fieldset>
		<legend>Log In to Your Account</legend>
		<table>
		<tr><th><label for="username">Username:</label></th><td><input type="text" id="username" name="username" value="@username" title="Username" @if(!StringExtensions.IsEmpty(usernameErrorMessage)
){<text>class="error-field"</text>} />@* Write any username validation errors to the page *@
                @if(!StringExtensions.IsEmpty(usernameErrorMessage)) {
                <label for="username" class="validation-error">
                    @usernameErrorMessage
                </label>
                }</td></tr>
								<tr><th><label for="password">Password:</label></th><td><input type="password" id="password" name="password" title="Password" @if(!StringExtensions.IsEmpty(passwordErrorMessage)){<text>class="error-field"</text>} />
                @* Write any password validation errors to the page *@
                @if(!StringExtensions.IsEmpty(passwordErrorMessage)) {
                <label for="password" class="validation-error">
                    @passwordErrorMessage
                </label>
                }</td></tr>
								<tr><th><label class="checkbox" for="rememberMe">Remember Me?</label></th><td><input type="checkbox" id="rememberMe" name="rememberMe" value="true" title="Remember Me" @if(rememberMe){<text>checked="checked"</text>} /></td></tr>
								<tr><th></th><td><input type="submit" value="login" title="Login"/></td></tr>
		</table>
        
        <p class="form-actions">
            
        </p>
        <p><!--<a href="@*Href("~/Account/ForgotPassword")*@">Did you forget your password?</a>--></p>
    </fieldset>
</form>